package com.nanshenycd.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor

public class Tag {

    private Long id;

    @NotBlank(message = "分类名称不能为空")  //后端校验值不能为空
    private String name;

    private List<Blog> blogs =new ArrayList<>();

}